package main

//泛绑定，此外还支持组路由 group
import "github.com/gin-gonic/gin"

func main() {
	r := gin.Default()

	//GET http://localhost:8080/wangfei/01
	//GET http://localhost:8080/wangfei/02
	r.GET("/wangfei/*age", func(context *gin.Context) {
		context.JSON(200, gin.H{
			"age": context.Param("age"),
		})
	})

	r.Run()
}
